/**
 * CashBookTBL.java
 * @author pkendzo
 * Email: pkendzo@msn.com
 * 2011
 */
package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 * @author pkendzo
 *
 */
@Table(name = "PRAXIS_CASHBOOK")
@Entity
public class CashBookTBL implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Column(name = "ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "ZEILE_NUMMER")
    private int lineNumber;
    
    @Column(name = "WOCHENTAG")
    private String day;

    @Column(name = "DATUM")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Calendar datum;

    @Column(name = "JAHR")
    private String year;

    @Column(name = "VORGANG", columnDefinition = "TEXT")
    private String event;
    
    @Column(name = "EINNAHME")
    private double revenue;
    
    @Column(name = "AUSGAGE")
    private double spending;
    
    @Column(name = "BANKEINZAHLUNG")
    private double bankDeposit;
    
    @Column(name = "BESTAND")
    private double inventory;
    
    @Column(name = "RECHNUNGSNUMMER")
    private long billId;
    
    @Column(name = "CASH")
    private boolean cash;
    
    @Column(name = "HONORARFORDERUNG")
    private double feeClaim;
    
    
    /**
     * 
     */
    public CashBookTBL()
    {
	
    }

    /**
     * @return the id
     */
    public Long getId()
    {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id)
    {
        this.id = id;
    }

    /**
     * @return the lineNumber
     */
    public int getLineNumber()
    {
        return lineNumber;
    }

    /**
     * @param lineNumber the lineNumber to set
     */
    public void setLineNumber(int lineNumber)
    {
        this.lineNumber = lineNumber;
    }

    /**
     * @return the datum
     */
    public Calendar getDatum()
    {
        return datum;
    }

    /**
     * @param datum the datum to set
     */
    public void setDatum(Calendar datum)
    {
        this.datum = datum;
    }

    /**
     * @return the year
     */
    public String getYear()
    {
        return year;
    }

    /**
     * @param year the year to set
     */
    public void setYear(String year)
    {
        this.year = year;
    }

    /**
     * @return the event
     */
    public String getEvent()
    {
        return event;
    }

    /**
     * @param event the event to set
     */
    public void setEvent(String event)
    {
        this.event = event;
    }

    /**
     * @return the revenue
     */
    public double getRevenue()
    {
        return revenue;
    }

    /**
     * @param d the revenue to set
     */
    public void setRevenue(double d)
    {
        this.revenue = d;
    }

    /**
     * @return the spending
     */
    public double getSpending()
    {
        return spending;
    }

    /**
     * @param spending the spending to set
     */
    public void setSpending(double spending)
    {
        this.spending = spending;
    }

    /**
     * @return the inventory
     */
    public double getInventory()
    {
        return inventory;
    }

    /**
     * @param inventory the inventory to set
     */
    public void setInventory(double inventory)
    {
        this.inventory = inventory;
    }

    /**
     * @param billId the billId to set
     */
    public void setBillId(long billId)
    {
	this.billId = billId;
    }

    /**
     * @return the billId
     */
    public long getBillId()
    {
	return billId;
    }

    /**
     * @return the day
     */
    public String getDay()
    {
        return day;
    }

    /**
     * @param day the day to set
     */
    public void setDay(String day)
    {
        this.day = day;
    }

    /**
     * @return the cash
     */
    public boolean isCash()
    {
        return cash;
    }

    /**
     * @param cash the cash to set
     */
    public void setCash(boolean cash)
    {
        this.cash = cash;
    }

    /**
     * @return the feeClaim
     */
    public double getFeeClaim()
    {
        return feeClaim;
    }

    /**
     * @param feeClaim the feeClaim to set
     */
    public void setFeeClaim(double feeClaim)
    {
        this.feeClaim = feeClaim;
    }

    /**
     * @return the bankDeposit
     */
    public double getBankDeposit()
    {
        return bankDeposit;
    }

    /**
     * @param bankDeposit the bankDeposit to set
     */
    public void setBankDeposit(double bankDeposit)
    {
        this.bankDeposit = bankDeposit;
    }
    
    

}
